package indi.qing.service;

import indi.qing.entity.Device;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 熊卿智
 * @since 2021-12-15
 */
public interface DeviceService extends IService<Device> {

    boolean switchControl(int state, Long deviceId) throws Exception;

    boolean LightControl(int luminance, Long deviceId) throws Exception;

    List<Device> getDevices(Long userId);
}
